package main

import (
	"fmt"
	"strings"
)

//字符串去除空格和换行符
func main() {
	str := "这里是曲某的仓库 https://gitee\n.com/asywx1112"
	fmt.Println("---------分割线----------")
	fmt.Println(str)
	//去除空格
	str = strings.Replace(str, "\n", "", -1)
	//去除换行符
	str = strings.Replace(str, "\n", "", -1)
	fmt.Println("--------去除空格分割线----------")
	fmt.Println(str)
}
